<template>
    <el-container>
        <el-aside width="15%"></el-aside>
        <el-main>
            <!--搜索框-->
            <el-input placeholder="请输入内容" class="input-with-select">
                <el-select value="" slot="prepend" placeholder="请选择">
                    <el-option label="车位" value="1"></el-option>
                </el-select>
                <el-button slot="append" icon="el-icon-search"></el-button>
            </el-input>

            <el-carousel :interval="5000" arrow="always">
                <el-carousel-item :key="1">
                    <img width="100%" src="../static/img/home/1.jpg"/>
                </el-carousel-item>
                <el-carousel-item :key="2">
                    <img width="100%" src="../static/img/home/2.jpg"/>
                </el-carousel-item>
                <el-carousel-item :key="3">
                    <img width="100%" src="../static/img/home/3.jpg"/>
                </el-carousel-item>
            </el-carousel>

            <el-divider></el-divider>
            <!--栅格-->
            <div class="block" style="line-height: 0">
                <el-row :gutter="20">
                    <el-col :span="8">
                        <div class="grid-content bg-purple" style="height:160px;background-color: orange;line-height: 160px" title="查看车位">
                            <el-link style="width: 100%;height: auto;font-size: 32px;font-family:微软雅黑;color: #050513" @click="$router.push('/parkspace')" :underline="false">
                                <i class="el-icon-search">&nbsp;&nbsp;查看车位</i>
                            </el-link>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="grid-content bg-purple" style="height:160px;background-color: lightskyblue;line-height: 160px" title="预定车位">
                            <el-link style="width: 100%;height: auto;font-size: 32px;font-family:微软雅黑;color: #050513" @click="$router.push('/reserve')">
                                <i class="el-icon-mobile">&nbsp;&nbsp;预约车位</i>
                            </el-link>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="grid-content bg-purple" style="height:160px;background-color: yellowgreen;line-height: 160px" title="停车引导">
                            <el-link style="width: 100%;height: auto;font-size: 32px;font-family:微软雅黑;color: #050513" @click="$router.push('/path')">
                                <i class="el-icon-position">&nbsp;&nbsp;停车引导</i>
                            </el-link>
                        </div>
                    </el-col>
                </el-row>

                <el-row :gutter="20">
                    <el-col :span="12">
                        <div class="grid-content bg-purple" style="height:160px;background-color: cornflowerblue;line-height: 160px" title="缴费取车">
                            <el-link style="width: 100%;height: auto;font-size: 32px;font-family:微软雅黑;color: #050513" @click="$router.push('/pay')">
                                <i class="el-icon-unlock">&nbsp;&nbsp;缴费取车</i>
                            </el-link>
                        </div>
                    </el-col>
                    <el-col :span="12">
                        <div class="grid-content bg-purple"
                                style="height:160px;background-color: paleturquoise;line-height: 160px"
                                title="管理员登录">
                            <el-link style="width: 100%;height: auto;font-size: 32px;font-family:微软雅黑;color: #050513" @click="$router.push('/login')">
                                <i class="el-icon-s-check">&nbsp;&nbsp;管理员登录</i>
                            </el-link>
                        </div>
                    </el-col>
                </el-row>
            </div>
            <el-divider></el-divider>
        </el-main>
        <el-aside width="15%"></el-aside>
    </el-container>
</template>

<script>
export default {
  name: 'Banner',

}
</script>

<style scoped>
        .el-aside {
            background-color: #f5f5f5;
            /*background-color: rgba(245, 245, 245, 0.2);*/
            color: #333;
            text-align: center;
            line-height: 200px;
        }

        .el-main {
            background-color: #E9EEF3;
            color: #333;
            text-align: center;
            line-height: 60px;
            padding-top: 0px;
            padding-bottom: 0px;
            overflow: hidden;
        }
        
        /**/
        .el-select  {
            width: 130px;
        }


        .input-with-select .el-input-group__prepend {
            background-color: #fff;
        }

        /**/
        .el-carousel__item h3 {
            color: #475669;
            font-size: 18px;
            opacity: 0.75;
            line-height: 300px;
            margin: 0;
        }

        .el-carousel__item:nth-child(2n) {
            background-color: #99a9bf;
        }

        .el-carousel__item:nth-child(2n+1) {
            background-color: #d3dce6;
        }

        /**/
        .el-row {
            margin-bottom: 20px;

        /* &:last-child {
            margin-bottom: 0;
        } */

        }
        .el-col {
            border-radius: 12px;
        }

        .bg-purple-dark {
            background: #99a9bf;
        }

        .bg-purple {
            background: #d3dce6;
        }

        .bg-purple-light {
            background: #e5e9f2;
        }

        .grid-content {
            border-radius: 12px;
            min-height: 36px;
            box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.5)
        }

        .row-bg {
            padding: 10px 0;
            background-color: #f9fafc;
        }
</style>
